FROM registry.cn-hangzhou.aliyuncs.com/lingyangwl/openjdk:8-jre-alpine
# 以下2个RUN解决 java验证码接口报错的问题,
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n \
            https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories && \
    mkdir -p /runtime

COPY run.sh /runtime/run.sh

RUN apk --update add curl bash ttf-dejavu && \
		chmod 777 /runtime/run.sh && \
    rm -rf /var/cache/apk/*

ADD *.jar /runtime/app.jar

WORKDIR /runtime
CMD ["/runtime/run.sh"]
